package cn.dt70.utils;

import com.cloopen.rest.sdk.CCPRestSmsSDK;

import java.util.HashMap;

public class SmsUtil {

    private static final String ACCOUNT_SID="8a216da867c51dac0167d41ce6870960";
    private static final String AUTH_TOKEN ="f0be0297a44b4c3daddfa4862f59e26f";
    private static final String Rest_URL="https://app.cloopen.com:8883";
    private static final String AppID="8a216da867c51dac0167d41ce6e30967";

    public static void sendSms(String phoneNum,String code){
        HashMap<String, Object> result = null;
        CCPRestSmsSDK restAPI = new CCPRestSmsSDK();
        restAPI.init("app.cloopen.com", "8883");
        restAPI.setAccount(ACCOUNT_SID, AUTH_TOKEN);
        restAPI.setAppId(AppID);
        result = restAPI.sendTemplateSMS(phoneNum,"1" ,new String[]{code,"1"});
    }
}
